package com.earthea.chatbot.entity.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 留言请求对象
 */
@Data
public class PublishMessageReq {

    @Size(max = 36, message = "非法chatId")
    private String chatId;

    /**
     * 消息
     */
    @NotNull(message = "消息不能为空")
    @Size(min = 1, max = 10000, message = "消息长度必须在1到10000个字符之间")
    private String content;
}
